Iterate the keys and values from the dictionary